package ru.urfc.portal.dao.filter;

public class Predicate {
	private String propertyName;
	private Object value;
	private Operator operator;

	public Predicate(String propertyName, Operator operator, Object value) {
		super();
		this.propertyName = propertyName;
		this.operator = operator;
		this.value = value;
	}
	
	public String generate(VariablesHolder variablesHolder) {
		return operator.generate(variablesHolder, this);
	}
	
	public String getPropertyName() {
		return propertyName;
	}
	
	public Object getValue() {
		return value;
	}
	
}
